﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using TimberSmart.Model.Common;
using TimberSmart.Model.Debtors;

namespace TimberSmart.Model.Debtors
{
    public class SaleTransaction
    {

        public int Id { get; set; }

        [MaxLength(15)]
        public string TransactionNumber { get; set; }

        [MaxLength(255)]
        public string CustomerReference { get; set; }

        [MaxLength(255)]
        public string InternalReference { get; set; }

        //FK's
        public virtual IEnumerable<Address> DeliveryAddresse { get; set; }

        public int? TransTypeId { get; set; }
        public virtual SaleTransactionType TransTypeDesc { get; set; }

        public int? CustomerId { get; set; }
        public virtual Customer CustomerName { get; set; }
    }
}
